/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/12/03
*/
#ifndef __EDUI_LUASCROLLBAR_H__
#define __EDUI_LUASCROLLBAR_H__

#include "../../controls/ScrollBar.h"
#include "LuaSlider.h"

#ifdef EDUI_USE_LUAPLUS

EDUI_NAMESPACE_BEGIN

class LuaScrollBar : public LuaSlider
{
public:
    LuaScrollBar(ScrollBar* scrollBar);
    virtual ~LuaScrollBar();
    static void* GetInterface(void* data);
    virtual void Release();
    static void Register(LuaState *L);
public:
    int GetBarBkRect(LuaState *L);
    int GetButton1Rect(LuaState *L);
    int GetButton2Rect(LuaState *L);
    bool SetButton1Size(int w, int h);
    int GetButton1Size(LuaState *L);
    bool SetButton2Size(int w, int h);
    int GetButton2Size(LuaState *L);
    bool SetButton1Inset(int l, int t, int r, int b);
    int GetButton1Inset(LuaState *L);
    bool SetButton2Inset(int l, int t, int r, int b);
    int GetButton2Inset(LuaState *L);
};

EDUI_NAMESPACE_END

#endif
#endif